package xml_study;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class MyProperties {

    public static void main(String[] args) throws IOException {
        Properties properties=new Properties();

        ClassLoader classLoader = MyProperties.class.getClassLoader();
        InputStream is = classLoader.getResourceAsStream("person.properties");

        properties.load(is);
        String username = properties.getProperty("gender");
        System.out.println(username);


    }
}
